export interface IColumns {
  title: string;
  key?: string;
  dataIndex?: string;
  align?: any;
  render?: any;
}

export interface IData {
  key?: number;
  goodsCode?: number | string;
  goodsName?: string;
  norms?: string;
  goodsType?: string;
  unit?: number | string;
  time?: number
}

export interface IGoodsType {
  id: number;
  type: string;
}

export interface IProps {}

export interface IState {
  selectList: IGoodsType[]
  formData: IData[]
  visible: boolean
  selectKey: number;
  spinning: boolean
  goodsInfo: IData;
}

export interface IResponse {
  msg: string
  code?: number
  data?: IGoodsType[] | IData[]
}

export interface IFormItem {
  name: string
  norms: string
  picker: moment.Moment[]
}